package com.tian.mapper;

import com.tian.dto.CouponInfoReqDto;
import com.tian.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CouponMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Coupon record);

    Coupon selectByPrimaryKey(Integer id);

    List<Coupon> selectAll();
    int count(CouponInfoReqDto couponInfoReqDto);
    List<Coupon> list(CouponInfoReqDto couponInfoReqDto);

    int updateByPrimaryKey(Coupon record);
}